import _fetch from './request'

function questionList(params) {
    return _fetch({
        url: '/question/list',
        method: "get",
        params
    })
}

//新增题目
function questionAdd(data) {
    return _fetch({
        url: '/question/add',
        method: "post",
        data
    })
}


//编辑
function questionEdit(data) {
    return _fetch({
        url: '/question/edit',
        method: 'post',
        data
    })
}

//状态设置
function setStatus(data) {
    return _fetch({
        url: '/question/status',
        method: 'post',
        data
    })
}

function delQuestion(data) {
    return _fetch({
        url: '/question/remove',
        method: 'post',
        data
    })
}

export { questionList, questionAdd, questionEdit, setStatus, delQuestion }